package aima.search;

import aima.cs.util.*;

/**
    Comparison function for greedy search nodes.
*/

public final class GreedyPredicate implements BinaryPredicate {

    public boolean evaluate(Object object1, Object object2) {

        return ( (HeuristicSearchNode) object1).getH()
             > ( (HeuristicSearchNode) object2).getH();

    }

}

